;GST Ledger is Compulsory to Select without GST Ledger Voucher not Create

[#Form:Voucher]
Control: VCH_GST_Control_Msg:@@Enable_GST_Control2 AND NOT @@VCH_GST_Control_IsEmpty

[System:Formulas]
VCH_GST_Control_Msg 		: "GST Ledger is Compulsory \n\n Please Select GST Ledger to save the Voucher"

VCH_GST_Control_IsEmpty 	: NOT $$IsEmpty:$$FilterValue:$Amount:LedgerEntries:Last:VCH_GST_TaxType_Filter
VCH_GST_TaxType_Filter 		: $TaxType:Ledger:$LedgerName = "GST"

[#Part: CMP TallyShopFeatures Left]
Add : Line:Enable_GST_Control

[Line :Enable_GST_Control]
Field :medium prompt, Enable_GST_Control
Local :Field : medium prompt : set as : "Enable GST Control (GST Ledger Compulsory) ?"
Local :Field : Medium Prompt : width : 35
space top : 0.2 cm

[Field :  Enable_GST_Control]
Use :Logical field
Storage :Enable_GST_Control

[System:udf]
Enable_GST_Control:Logical:714

[System: formula]
Enable_GST_Control:$Enable_GST_Control:company:##svcurrentcompany
Enable_GST_Control2:@@Enable_GST_Control AND @@VEnable_GST_Control
VEnable_GST_Control:$Enable_GST_Control:voucherType:##SVVoucherType

[#Part: VTYP Main Left]
add :  Parts   : At End : VEnable_GST_Control

[Part: VEnable_GST_Control]
Line:VEnable_GST_Control
Local:Field:LongPrompt: Width		: @@LongWidth + 5

[Line: VEnable_GST_Control]
Space Top: 2 mm
Field: Long prompt,VEnable_GST_Control
Local: Field: Long prompt : Set as: "Enable GST Control (GST Ledger Compulsory) ?"
Invisible: not @@Enable_GST_Control

[Field: VEnable_GST_Control]
Use: logical field
Storage: Enable_GST_Control

